#ifndef ADDITEM_H
#define ADDITEM_H

#include <QDialog>
#include <QMessageBox>
#include "entity.h"
#include "head/g_functionbase.h"

namespace Ui {
class AddItem;
}

class AddItem : public QDialog
{
    Q_OBJECT

public:
    explicit AddItem(QWidget *parent = nullptr);
    ~AddItem();

    void setItem(const QString &key,const QString &value);

signals:
    void addItem(const QString &key,const QString &value);

private slots:
    void on_btn_submit_clicked();

private:
    Ui::AddItem *ui;
};

#endif // ADDITEM_H
